/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.chl.niclun.projectwebshop.nbp;

import edu.chl.niclun.projectwebshop.nbp.Entities.Movie;
import java.util.ArrayList;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *Backingbean for the Index.xhtml
 * @author martin
 */
@ManagedBean(name="ViewIndexBean")
@RequestScoped
public class ViewIndexBackingBean {
    //list of movies to show on the homepage
    private List<Movie> movies;
    
    /** Creates a new instance of ViewIndexBackingBean */
    public ViewIndexBackingBean() {
       movies = new ArrayList<Movie>();
    }

    public List<Movie> getMovies() {
        return movies;
    }

    public void setMovies(List<Movie> movies) {
        this.movies = movies;
    }

  
    
}
